<!DOCTYPE html>
<html>
<head>
	<title>批量运行信息页面</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
	    var path = window.document.location.href;
		var pathName = window.document.location.pathname;
		var hostPath = path.substring(0, path.indexOf(pathName));
		var projectName = pathName.substring(0, pathName.substr(1).indexOf("/") + 1);
		document.write('<scr' + 'ipt src="' + projectName + '/js/html/header.js"></scr'+'ipt>');
    </script>
</head>
<body>
	<table id="dg" style="width: auto; height: auto" fitColumns="true">
		<thead>
			<tr>
				<th field="id" data-options="hidden:true">ID</th>
			<th field="bhdate" align="right" width="100" 
				data-options="
				sortable:true,
				remoteSort:false
				">批量日期</th>
			<th field="jobno" align="right" width="40" 
				data-options="
				sortable:true,
				remoteSort:false
				">任务号</th>
			<th field="step" align="right" width="60" 
				data-options="
				sortable:true,
				remoteSort:false
				">步骤号</th>
			<th field="subStep" align="right" width="60" 
				data-options="
				sortable:true,
				remoteSort:false
				">子步骤</th>
			<th field="startTime" align="right" width="100" 
				data-options="
				sortable:true,
				remoteSort:false
				">开始时间</th>
			<th field="endTime" align="right" width="100" 
				data-options="
				sortable:true,
				remoteSort:false
				">结束时间</th>
			<th field="status" align="right" width="60" 
				data-options="
				sortable:true,
				remoteSort:false
				">执行状态</th>
			<th field="remark" align="right" width="100" 
				data-options="
				sortable:true,
				remoteSort:false
				">备注</th>
			</tr>
		</thead>
	</table>
	<div id="dg-buttons" style="height: auto">
		<div style="margin-bottom:5px">
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" 	onclick="dlgAdd()">新增</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" 	onclick="dlgRemove()">删除</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" 	onclick="dlgEdit()">修改</a>
		</div>
		<div>
			<span>&nbsp;&nbsp;&nbsp;&nbsp;选择:</span>
			<input type="text" id="searchKey" name="searchKey" class="easyui-combobox" value="bhdate"/>
			<span>等于:</span>
			<input type="text" id="searchValue" name="searchValue" class="easyui-validatebox" />
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onclick="dgop.find()">查询</a>
		</div>
	</div>
<div id="dlg-buttons">
		<a href="javascript:dlgSave()" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
		<a href="javascript:dlgClose()" class="easyui-linkbutton" iconCls="icon-cancel">关闭</a>
	</div>
	<div id="dlg" class="easyui-dialog" closed="true" style="width: 730px; height: 380px; padding: 10px 10px;" buttons="#dlg-buttons">
		<form method="post" id="fm">
			<table cellspacing="8px;">
				<td><input id="id" name="id" style="display: none" required="true"></td>
			<tr>
				<td>批量日期</td>
				<td><input id="bhdate" name="bhdate" class="easyui-validatebox" 
				required="true">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>任务号</td>
				<td><input id="jobno" name="jobno" class="easyui-validatebox">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>步骤号</td>
				<td><input id="step" name="step" class="easyui-validatebox">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>子步骤</td>
				<td><input id="subStep" name="subStep" class="easyui-validatebox">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>开始时间</td>
				<td><input id="startTime" name="startTime" class="easyui-validatebox">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>结束时间</td>
				<td><input id="endTime" name="endTime" class="easyui-validatebox" 
				required="true">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>执行状态</td>
				<td><input id="status" name="status" class="easyui-combobox" 
				required="true">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			<tr>
				<td>备注</td>
				<td><input id="remark" name="remark" class="easyui-validatebox" 
				required="true">&nbsp; 
				<span style="color: red">*</span></td>
			</tr>
			</table>
		</form>
	</div>
	<div id="dlg-Details" class="easyui-window" closed="true" style="width: 730px; height: 280px; padding: 10px 10px;"></div>
	<script>
		var initd = {
			queryDataURL : "/batch/sysBatchLogQuery",
			saveDataURL : "/batch/sysBatchLogSave",
			removeDataURL:"/batch/sysBatchLogRemove",
			dg : $('#dg'),
			dataDicLocal:{'status':{'00':'未运行','01':'运行中...','02':'运行成功','03':'运行失败'}}
		};
	</script>
</body>
</html>

